package com.lifo.shoppingcart.service;

import com.lifo.shoppingcart.bean.HfShoppingCart;

import java.util.List;

/**
 * Created by Administrator on 2018/6/25 0025.
 */
public interface ShoppingCartManagerService {

    void saveShoppingCart(HfShoppingCart hfShoppingCart);

    List<HfShoppingCart> searchHfShoppingCartsByUserId(int userId);

    List<HfShoppingCart> searchHfShoppingCartsByUserIdGroupByConditions(int userId);

    HfShoppingCart searchHfShoppingCartByCartId(  int cartId);

    /**
     * 统计购物商品数量
     * @param userId
     * @return
     */
    int countByUserId(int userId);
}
